<form onsubmit="return false" data-auto="true" action="{:request()->url()}" method="post" class='layui-form layui-card' autocomplete="off">
    <div class="layui-card-body padding-top-20">
        <div class="layui-form-item">
            <label class="layui-form-label" for="contact.name">
                <span class="color-green font-w7">系统名称</span><br><span class="nowrap color-desc"></span>
            </label>
            <div class="layui-input-block">
                <input id="contact.name" type="text" name="contact.name" required value="{:sysconf('contact.name')}" placeholder="请输入系统名称" class="layui-input">
                <p class="help-block">系统名称</p>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label" for="contact.phone">
                <span class="color-green font-w7">客服电话</span><br><span class="nowrap color-desc"></span>
            </label>
            <div class="layui-input-block">
                <input id="contact.phone" type="text" name="contact.phone" required value="{:sysconf('contact.phone')}" placeholder="请输入客服电话" class="layui-input">
                <p class="help-block">客服电话</p>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label" for="contact.business_phone">
                <span class="color-green font-w7">商务合作电话</span><br><span class="nowrap color-desc"></span>
            </label>
            <div class="layui-input-block">
                <input id="contact.business_phone" type="text" name="contact.business_phone" required value="{:sysconf('contact.business_phone')}" placeholder="请输入商务合作电话" class="layui-input">
                <p class="help-block">商务合作电话</p>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label" for="contact.app_name">
                <span class="color-green font-w7">微信公众号</span><br><span class="nowrap color-desc"></span>
            </label>
            <div class="layui-input-block">
                <input id="contact.app_name" type="text" name="contact.app_name" required value="{:sysconf('contact.app_name')}" placeholder="请输入微信公众号" class="layui-input">
                <p class="help-block">微信公众号</p>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label" for="contact.max_open">
                <span class="color-green font-w7">最大可开柜门</span><br><span class="nowrap color-desc"></span>
            </label>
            <div class="layui-input-block">
                <input id="contact.max_open" type="text" name="contact.max_open" required value="{:sysconf('contact.max_open')}" placeholder="请输入最大可开柜门数量" class="layui-input">
                <p class="help-block">设置最大可开柜门数量，为0表示无限制</p>
            </div>
        </div>

        <div class="layui-form-item text-center padding-left-40">
            <button class="layui-btn" type="submit">保存配置</button>
            <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消修改吗？" data-close>取消修改</button>
        </div>

        <script>form.render()</script>

    </div>
</form>